import Toast from "../../miniprogram/miniprogram_npm/@vant/weapp/toast/toast";

function onPreview(e) {
    const {urls, current} = e.currentTarget.dataset
    wx.previewImage({
        urls,
        current
    })
}

function onVote(e) {
    const count = e.detail.count
    console.log(count)
    // api vote
    Toast.success({
        message: '助力成功',
        forbidClick: true,
    })
}

export {
    onPreview,
    onVote,
}
